package com.edu.service.user.impl;


import com.edu.entity.user.EduUser;
import com.edu.mapper.user.EduUserMapper;
import com.edu.service.user.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private EduUserMapper eduUserMapper;
    @Override
    public EduUser findUserByName(String name) {
        return eduUserMapper.findUserByName(name);
    }

    @Override
    public EduUser findUserById(int id) {
        return eduUserMapper.findUserById(id);
    }

    @Override
    public void insertUser(EduUser eduUser) {
        eduUserMapper.insert(eduUser);

    }

    @Override
    public List<EduUser> pageList() {
        return eduUserMapper.pageList();
    }
}
